repo: Ensure new config doesn't set remotes in separate file
authorDan Nicholson <nicholson@endlessm.com>
Mon, 11 Sep 2017 17:57:42 +0000 (12:57 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 13 Sep 2017 16:03:25 +0000 (16:03 +0000)
commit3b315e16d89fe55423d693c4c4acf3986489de24
tree01927f7aad37a5ff222718cd2683d41bb3852e93
parent4cc813133c5aa074d2d2664fb57b9edb74c610c8
repo: Ensure new config doesn't set remotes in separate file

If the new configuration passed to ostree_write_config () tries to
update options for a remote defined in a separate config file, return an
error. Without this, the full configuration would contain duplicate
remote specifications, which would raise an error the next time the repo
is opened.

Closes: #1159
Approved by: cgwalters
src/libostree/ostree-repo.c
tests/test-remotes-config-dir.js